package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.domain.TaskExecuteInfoDO;
import cn.juque.datapipeline.domain.TaskExecuteInfoSearchParamDO;
import cn.juque.datapipeline.entity.TaskExecuteInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务执行信息</li>
 * </ul>
 * {@code @date} 2023-04-03 18:33:19
 **/
@Mapper
public interface TaskExecuteInfoMapper extends BaseMapper<TaskExecuteInfo> {

    /**
     * 分页查询
     *
     * @param page            : page
     * @param taskExecuteInfo : taskExecuteInfo
     * @return List<TaskExecuteInfo>
     */
    List<TaskExecuteInfoDO> queryExecuteInfoList(Page<TaskExecuteInfoDO> page, @Param("ew") TaskExecuteInfoSearchParamDO taskExecuteInfo);

    /**
     * 查询
     *
     * @param taskExecuteInfo : taskExecuteInfo
     * @return List<TaskExecuteInfo>
     */
    List<TaskExecuteInfoDO> queryExecuteInfoList(@Param("ew") TaskExecuteInfoSearchParamDO taskExecuteInfo);
}
